<?php

use \think\Request;

$basename = Request::instance()->root();
if (pathinfo($basename, PATHINFO_EXTENSION) == 'php') {
    $basename = dirname($basename);
}
return [

//    // 模板参数替换
//    'view_replace_str' => [
//        '__ROOT__'   => $basename,
//        '__STATIC__' => $basename . '/static/index',
//        '__LIB__'    => '/static/index/lib',
//        '__STATIC_LIB__' => $basename . '/static/lib',
//    ],
];
